<h1 class="page-header">
    <small>积分明细</small>
</h1>
<hr/>
<div class="panel panel-inverse" data-sortable-id="form-stuff-5">
    <div class="panel-heading">
        <h4 class="panel-title">积分明细查询</h4>
    </div>
    <div class="panel-body">
        <form id="pointForm" name="pointForm" method="post" class="form-inline">
            <div class="form-group m-r-10">
                <input type="text" class="form-control" name="EQ_userId" value="${EQ_userId}"
                       placeholder="会员ID">
            </div>
            <div class="form-group m-r-10">
                <input type="text" class="form-control" name="LIKE_description" value="${LIKE_description}"
                       placeholder="关键字">
            </div>
            <button type="button" class="btn btn-sm btn-success"
                    onclick="postDataByForm('backend/point/index','displayArea','pointForm')"><i class="fa fa-search"></i>查询
            </button>
        </form>
    </div>
</div>
<hr/>
<div class="panel panel-inverse" data-sortable-id="table-basic-4">
    <div class="panel-heading">
        <h4 class="panel-title">积分明细列表</h4>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>会员ID</th>
                <th>会员名称</th>
                <th>变动数量</th>
                <th>备注说明</th>
                <th>时间</th>
                <th>状态</th>
            </tr>
            </thead>
            <tbody>
            <#if paginationResponse?has_content && paginationResponse.content?exists && paginationResponse.content?size gt 0>
                <#list paginationResponse.content as ct>
                    <tr>
                        <td>${ct.id}</td>
                        <td>${ct.userId}</td>
                        <td>${ct.userInfo.name}</td>
                        <td><#if ct.amount gt 0><span style="color:#52c41a;">+${ct.amount}</span><#else><span style="color:#f5222d;">${ct.amount}</span></#if></td>
                        <td>${ct.description}</td>
                        <td>${ct.createTime}</td>
                        <td>
                        <#if ct.status == "A">
                            <span class="status-active">有效</span>
                        <#else>
                            <span class="status-disabled">无效</span>
                        </#if>
                        </td>
                    </tr>
                </#list>
            <#else>
            <tr class="gradeA even" role="row">
                <td colspan="12" class="text-center">没有符合条件的数据！</td>
            </tr>
            </#if>
        </table>
    </div>
</div>

<!-- 分页组件 -->
<!-- recordBean 分页查询结果Bean
     action 分页请求URL
     formName 分页需要的查询参数的表单名称 -->
<@sp.pagination recordBean=paginationResponse action="${rc.contextPath}/backend/point/index" formName="pointForm"/>